package com.ruoyi.agency.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * @author wf
 * @date 2024/11/26 11:21
 */
public class Record {
    /** id */
    private Long id;

    /** 供应商id */
    @Excel(name = "供应商id")
    private Long sId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String sName;

    /** 需求id */
    @Excel(name = "需求id")
    private Long reqId;

    /** 机构id */
    @Excel(name = "机构id")
    private Long agencyId;

    /** 机构名称 */
    @Excel(name = "机构名称")
    private String agencyName;

    /** 规格 */
    @Excel(name = "规格")
    private String specs;

    /** 数量 */
    @Excel(name = "数量")
    private String quantity;

    /** 通过时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "通过时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date passTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setsId(Long sId)
    {
        this.sId = sId;
    }

    public Long getsId()
    {
        return sId;
    }
    public void setReqId(Long reqId)
    {
        this.reqId = reqId;
    }

    public Long getReqId()
    {
        return reqId;
    }
    public void setAgencyId(Long agencyId)
    {
        this.agencyId = agencyId;
    }

    public Long getAgencyId()
    {
        return agencyId;
    }
    public void setPassTime(Date passTime) { this.passTime = passTime; }

    public String getsName() { return sName; }
    public void setsName(String sName) { this.sName = sName; }

    public String getAgencyName() { return agencyName; }
    public void setAgencyName(String agencyName) { this.agencyName = agencyName; }

    public String getSpecs() { return specs; }
    public void setSpecs(String specs) { this.specs = specs; }

    public String getQuantity() { return quantity; }
    public void setQuantity(String quantity) { this.quantity = quantity; }

    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }

    public Date getPassTime()
    {
        return passTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sId", getsId())
                .append("sName", getsName())
                .append("reqId", getReqId())
                .append("specs", getSpecs())
                .append("quantity", getQuantity())
                .append("agencyId", getAgencyId())
                .append("agencyName", getAgencyName())
                .append("passTime", getPassTime())
                .append("endTime", getEndTime())
                .append("status", getStatus())
                .toString();
    }
}
